package cn.liuweiwei.service;

import cn.liuweiwei.domain.Message;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface MessageService {
    PageInfo<Message> findAllMessage(String page, String limit);


    List<Message> findOneMessageByEmail(String email);

    @Transactional
    void insertOneMessage(Message message);

    void deleteMessageByIds(String[] ids);
}
